<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			var token = this.Get_token();
			var value = uni.getStorageSync('launchFlag');
			console.log("token",token)
			console.log("value",value)
			if(!token){
				uni.reLaunch({
					url:'pages/login/login'
				})
			}
			else if(!value && !token){
				uni.redirectTo({
					  url: '/pages/index/intro'
				});
				uni.setStorage({
					 key: 'launchFlag',
					 data: true
				});
			}
		},
		onShow: function() {
			
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
</style>
